
package com.scalar.chiptrack.operations.packingslip.forms;

import java.util.Calendar;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

import com.scalar.chiptrack.ChipTrackActionForm;

public class SearchPackingSlipForm extends ChipTrackActionForm {
    
	private int customerId = -1;
	private String salesOrderNumber = null;
	private String customerPo = null;
    private String sePsStatus 	= null;
	private int addressID 	= 0;
	private String year 	= "";
	private String location	= "";

    private int manufacturingPartNo = -1;

    private int orderType   = 1; //default to Regular
    private boolean lineItemWise = false;


    public void reset( ActionMapping mapping, HttpServletRequest request )
	{
        Calendar cl   = Calendar.getInstance();
        year = cl.get( Calendar.YEAR )+"";
        lineItemWise = false;
    }
    
	public SearchPackingSlipForm () {
	}
    
	public int getCustomerId()
	{
		return customerId;
	}
	public void setCustomerId(int customerId)
	{
		this.customerId = customerId;
	}
    
	public String getSalesOrderNumber()
	{
		return salesOrderNumber;
	}
    
	public void setSalesOrderNumber( String salesOrderNumber )
	{
		this.salesOrderNumber = salesOrderNumber;
	}

	 public String getSePsStatus() {
        return sePsStatus;
    }

    public void setSePsStatus(String sePsStatus) {
        this.sePsStatus = sePsStatus;
    }
	public int getAddressID()
	{
		return addressID;
	}

	public void setAddressID(int i)
	{
		addressID = i;
	}

	public String getCustomerPo()
	{
		return customerPo;
	}

	public void setCustomerPo(String string)
	{
		customerPo = string;
	}

	public String getYear()
	{
		return year;
	}

	public void setYear( String year )
	{
		this.year = year;
	}

    public String getLocation()
    {
        return location;
    }

    public void setLocation(String string)
    {
        location = string;
    }

    public int getManufacturingPartNo() {
        return manufacturingPartNo;
    }

    public void setManufacturingPartNo(int manufacturingPartNo) {
        this.manufacturingPartNo = manufacturingPartNo;
    }

    public void setOrderType ( int orderType )
    {
        this.orderType = orderType;
    }
    public int getOrderType ( )
    {
        return orderType;
    }

    public boolean isLineItemWise() {
        return lineItemWise;
    }

    public void setLineItemWise(boolean lineItemWise) {
        this.lineItemWise = lineItemWise;
    }
}